import request from '@/utils/request'
import qs from 'qs';

// 查询培训师列表
export function listTrainer(query) {
  return request({
    url: '/trainer/list/search',
    method: 'post',
    data: query
  })
}

// 新增培训师
export function addTrainer(Trainer) {
  return request({
    url: '/trainer',
    method: 'post',
    data: Trainer
  })
}

// 查询用户信息
export function getTrainer(TrainerId) {
  return request({
    url: `/trainer/${TrainerId}`,
    method: 'get'
  })
}

// 修改培训师
export function updateTrainer(Trainer) {
  return request({
    url: '/trainer',
    method: 'put',
    data: Trainer
  })
}

// 删除培训师
export function delTrainer(ids) {
  return request({
    url: '/trainer?ids=' + ids,
    method: 'delete',
  })
}

export function listTrainerAll() {
  return request({
    url: `/trainer/listTrainer`,
    method: 'get'
  })
}

